package oop.ex3.crosswords;

public class MyCrosswordEntry implements CrosswordEntry {
	
	private String term;
	
	private String definition;
	
	private MyCrosswordPosition position;
	
	public MyCrosswordEntry(String term, String definition, MyCrosswordPosition position){
		this.definition=definition;
		this.term=term;
		this.position=position;
	}
	
	
	@Override
	public CrosswordPosition getPosition() {
		
		return this.position;
	}

	@Override
	public String getDefinition() {
		return this.definition;
	}

	@Override
	public String getTerm() {
		return this.term;
	}

	@Override
	public int getLength() {
		return this.term.length();
	}


}
